package com.lingnan.entity.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import jakarta.validation.constraints.*;

import java.util.Date;


@Data
public class Resume {
    @TableId(type = IdType.AUTO)
    private Long id;

    @NotNull(message = "求职者ID不能为空")
    private Long seekerId;

    @NotBlank(message = "简历名称不能为空")
    @Size(max = 100, message = "简历名称长度不能超过100个字符")
    private String title;

    private String content;

    @Size(max = 255, message = "附件URL长度不能超过255个字符")
    private String fileUrl;

    private Boolean isDefault = false;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;
    private Long updateId;

}